package net.huashitong.supervision.insideDuCha.dao;

import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.core.dao.StringDao;
import net.huashitong.supervision.insideDuCha.entity.InsideSubTaskEntity;
import net.huashitong.supervision.insideDuCha.filter.InsideSubTaskFilter;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class InsideSubTaskDao  extends StringDao<InsideSubTaskEntity> {



    public List<InsideSubTaskEntity> getListSubLists(InsideSubTaskFilter filter){
        GenericQuery query = createQuery("obj");
        query.append(" and obj.taskMainId=:taskMainId").setParam("taskMainId",filter.getTaskMainId());
        return query.listResult();
    }

}
